<template>
  <div>
    <h2>我是star组件</h2>
    <div>{{age}}</div>
    <button @click="sing">唱歌</button>
    <button @click="dance">跳舞</button>
  </div>
</template>

<script>
export default {
    name:'MyStar',
    data(){
      return {
        age:18
      }
    },
    methods:{
      sing(){
        console.log('动词打次~')
      },
      dance(){
        console.log('动词打次~嗨起来')
      }
    }
}
</script>

<style>

</style>